function fSetHeight(){
	try{
		var height = 500;
		if(document.all){
			height = document.compatMode=="CSS1Compat" ? document.documentElement.scrollHeight:document.body.scrollHeight; 
		}else{			
			if(document.documentElement.scrollHeight - document.body.offsetHeight < 100){
				height = document.documentElement.scrollHeight;
			}else{
				height = document.body.scrollHeight;
			}		
		}
		if(!height) height = 500;
		// height += 20;
		var h = ((typeof(outlink_height) == "undefined")?height:outlink_height);		
		// if(h < 500) h = 500;		
		var arr = location.hostname.split(".");
		if(arr.length>1){
			document.cookie = "oulink_h="+ h +";domain="+ arr[arr.length-2] + "." + arr[arr.length-1] +";path=/";
		}
	}catch(e){}
}
window.onload = fSetHeight;


